package cn.fly.springbucks.config;

import cn.fly.springbucks.beans.MyBean1;
import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanConfig {

    @Bean
    public MyBean1 getMyBean1(){
        return new MyBean1("MyBean1");
    }

//    @Bean
//    public Jackson2ObjectMapperBuilderCustomizer jackson2ObjectMapperBuilderCustomizer(){
//        return builder -> builder.indentOutput(true);
//    }
}
